package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemberInfoMapper;
import com.whq.entity.MemberInfo;
import com.whq.service.MemberInfoService;

@Service(value = "tdMemberInfoService")
public class MemberInfoServiceImpl implements MemberInfoService {

    @Autowired
    private MemberInfoMapper<MemberInfo>tdMemberInfoMapper;
    
    @Override
    public Integer insertSelective(MemberInfo tdMemberInfo) throws Exception {
           return this.tdMemberInfoMapper.insertSelective(tdMemberInfo);
        }

    @Override
    public Integer insertBatch(List<MemberInfo> tdMemberInfo) throws Exception {
           return this.tdMemberInfoMapper.insertBatch(tdMemberInfo) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdMemberInfoMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdMemberInfoMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemberInfo tdMemberInfo) {
           return this.tdMemberInfoMapper.updateByPrimaryKeySelective(tdMemberInfo);
    }

    @Override
    public MemberInfo findById(Object id) {
           return (MemberInfo) this.tdMemberInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemberInfo> selectByCondition(MemberInfo tdMemberInfo) {
           return (List<MemberInfo>) this.tdMemberInfoMapper.selectByCondition(tdMemberInfo);
    }

    @Override
    public Integer selectCountByCondition(MemberInfo tdMemberInfo) {
           return  this.tdMemberInfoMapper.selectCountByCondition(tdMemberInfo);
    }

}
